package com.itheima.vms.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "分类树形结构")
public class CategoryTreeVO {

    @Schema(description = "分类ID")
    private Integer id;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "父ID")
    private Integer parentId;

    @Schema(description = "子分类列表")
    private List<CategoryTreeVO> children;
}